package com.trinh.utils.crypto.cryptors;

import com.trinh.utils.crypto.config.KeyConfig;
import com.trinh.utils.crypto.enu.Algorithm;
import com.trinh.utils.crypto.enu.CharFormater;
import com.trinh.utils.crypto.enu.Padding;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: TrinhRae
 * @Package: com.trinh.utils.crypto.cryptors
 * @Project: generaltools
 * @Date: 2025/6/23 17:25
 */
public class CryptFactory {
    private static Map<String, CryptEngin> cryptEnginMap = new HashMap<>();

    public static CryptEngin getCryptEngin(String string) {
        return cryptEnginMap.get(string);
    }

    public static void register(String str, CryptEngin cryptEngin) {
        cryptEnginMap.put(str, cryptEngin);
    }
}
